<template>
	<view class="user-head">
		<view class="head-left">
      <view class="left-name">{{info.name}}</view>
      <view class="left-company">{{info.company}}</view>
		</view>
    <view class="head-right">
      <image :src="info.face || '../../../../static/img/default-img.png'" mode="widthFix"></image>
    </view>
    
	</view>
</template>

<script>
	export default {
		name: 'UserHead',
		props:{
      info:{
        type:Object,
        default:()=>({})
      }
		}
	}
</script>

<style lang="scss">
.user-head{
  display: flex;
  justify-content: space-between;
  padding:46rpx 32rpx;
  box-sizing: border-box;
  background-color: #fff;
  
  .head-left{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .left-name{
      font-size: 40rpx;
      color:#111;
    }
    .left-company{
      font-size: 32rpx;
      color:#666;
    }
  }
  .head-right{
    width: 128rpx;
    image{
      width: 100%;
    }
  }
}
</style>
